package cn.wygandwdn.common.exception;

import cn.wygandwdn.common.enumeration.ErrorType;

/**
 * @description:
 * @author: WYG
 * @time: 2021/10/24 20:20
 */

public class RpcException extends RuntimeException {

    public RpcException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public RpcException(ErrorType type) {
        super(type.getMessage());
    }

    public RpcException(String msg) {
        super(msg);
    }

}
